package com.itobase.statusDetect.Repository;

import com.itobase.statusDetect.Model.Teacher;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author htyu
 * @date 2019/5/6
 */
public interface TeacherRepository extends MongoRepository<Teacher,String> {

    List<Teacher> findAllByOrganizationID(String organizationID);

    Teacher findByNumber(String name);
}
